package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"time"
)

func main(){
	client := &http.Client{
		Timeout: 3 * time.Second,
	}

	req, err := http.NewRequest("GET", "http://localhost:55001/user/test/11", nil)
	token, _ := ioutil.ReadFile("../log.txt")
	req.Header.Add("Authorization", string(token))

	if err != nil {
		fmt.Println(err)
	}
	resp, err := client.Do(req)
	if err != nil {
		fmt.Println(err)
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(string(body))
}
